<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>5-1</title>
    <script>
        document.onclick = function (event) {
            var event = event || window.event;
            alert("坐标：[" + event.clientX + ", " + event.clientY + "]");
        }
    </script>
</head>
<body>
</body>
</html>